package com.java.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 供应商信息
 * @author Administrator
 *
 */
@Entity
@org.hibernate.annotations.Entity(
		selectBeforeUpdate = true, 
		dynamicInsert = true, 
		dynamicUpdate = true
)
@Table(name="supplier")
public class Supplier implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8617443512834794357L;

	@Id
	@GeneratedValue
	private Long id;
	
	/**
	 * 公司名称
	 */
	@Column(length=200)
	private String companyName;
	
	/**
	 * 联系人
	 */
	@Column(length=20)
	private String contact;
	
	/**
	 * 性别
	 */
	@Column
	private Boolean sex;
	
	/**
	 * 联系电话
	 */
	@Column(length=30)
	private String tel;
	
	/**
	 * 手机
	 */
	@Column(length=30)
	private String mobile;
	
	/**
	 * 联系传真
	 */
	@Column(length=30)
	private String fax;
	
	/**
	 * Email
	 */
	@Column(length=50)
	private String email;
	
	/**
	 * Email
	 */
	@Column(length=50)
	private String qq;
	
	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	/**
	 * 网址
	 */
	@Column(length=200)
	private String website;
		
	/**
	 * 地址
	 */
	@Column(length=100)
	private String address;
	
	/**
	 * 描述
	 */
	@Column(length=200)
	private String remark;
	
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	/**
	 * 公司介绍
	 */
	@Column(length=200)
	private String detail;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getWebsite() {
		return website;
	}

	public void setWebsite(String website) {
		this.website = website;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}
	
	public Boolean getSex() {
		return sex;
	}

	public void setSex(Boolean sex) {
		this.sex = sex;
	}
}
